package com.qfedu.edu.orderservice.slot.generic;

import com.qfedu.edu.orderservice.slot.base.Ordered;
import com.qfedu.edu.orderservice.slot.base.Slot;

/**
 * @author xiaobobo
 * @title: GenericSlot
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/11  16:34
 */
public abstract class GenericSlot implements Slot, Ordered, Comparable<GenericSlot> {
    @Override
    public int compareTo(GenericSlot o) {
        return this.getOrder() - o.getOrder();
    }
}
